package cn.javass.dp.chianofresponsibility.mydemo1;

public class Client {

    public static void main(String[] args) {

        Handle handle = new ConcreteHandle2();
        Handle handle1 = new ConcreteHandle1();
//        handle.setSuccessor(handle1);
        handle1.setSuccessor(handle);
        handle1.handleRequest();


    }
}
